/*
 * Copyright (c) Hunan Goke,Chengdu Goke,Shandong Goke. 2021. All rights reserved.
 */
#ifndef __SENSOR_SPI_H__
#define __SENSOR_SPI_H__
typedef struct SPI_MODULE_PARAMS_S {
	GK_U32 u32BusNum;
	GK_U32 u32csn;
	GK_CHAR cSensor[64];
} SPI_MODULE_PARAMS_S;

int ssp_write_alt(unsigned int spi_bus, unsigned int spi_csn,
		  unsigned int addr1, unsigned int addr1bytenum,
		  unsigned int addr2, unsigned int addr2bytenum,
		  unsigned int data, unsigned int databytenum);

int ssp_read_alt(unsigned int spi_bus, unsigned int spi_csn,
		 unsigned char devaddr, unsigned char addr,
		 unsigned char *data);
#endif
